package kr.saeildamil.androidstudy.ch05;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;


public class RelativeEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch05_relative);
	}
	public void mOnClick(View v){
		ImageView img = (ImageView) findViewById(R.id.relative_icon);
		if(img.getVisibility() == View.VISIBLE){
			img.setVisibility(View.GONE);
		}else{
			img.setVisibility(View.VISIBLE);
		}
	}
}
